package com.meirengu.webview.service.impl;

import com.meirengu.service.impl.BaseServiceImpl;
import com.meirengu.webview.dao.KwInterfaceLimitDao;
import com.meirengu.webview.model.KwInterfaceLimit;
import com.meirengu.webview.service.KwInterfaceLimitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * KwInterfaceLimit服务实现层
 *
 * @author Mao
 * @create Tue Mar 20 16:00:45 CST 2018
 */
@Service
public class KwInterfaceLimitServiceImpl extends BaseServiceImpl<KwInterfaceLimit> implements KwInterfaceLimitService {

    @Autowired
    KwInterfaceLimitDao kwInterfaceLimitDao;

    public int updateLimitNum(KwInterfaceLimit kwInterfaceLimit) {
        return kwInterfaceLimitDao.updateLimitNum(kwInterfaceLimit);
    }

    public int updateOutLimit(KwInterfaceLimit kwInterfaceLimit) {
        return kwInterfaceLimitDao.updateOutLimit(kwInterfaceLimit);
    }

    @Override
    public Integer getLimitNum(Map map) {
        return kwInterfaceLimitDao.getLimitNum(map);
    }


}
